package com._520it._02_one2many.domain;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.ArrayList;
import java.util.List;


@Getter
@Setter
//一部门包含多人

//注意: 单向的一对多: 只能由one方根据id来查询many的数据, 结果是多个many方数据
public class Department {

	private Long id ;
	private String name;

	private List<Employee> employeelist  = new ArrayList<>();


	public String toString() {
		return "Department{" + "id=" + id + ", name='" + name + '\'' + '}';
	}
}
	
	

